#main {
    position: relative;
}
.box {
    padding: 6px 0 6px 8px;
    float: left;
}

.pic {
    width: 180px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 5px;
    background: white;
    box-shadow: 1px 1px 2px #ccc;
}

.pic img {
    width: 100%;
}

.box {
    transition: transform 1s linear;
}